package it.yuzuojian.com.service.impl;

import it.yuzuojian.com.javaBean.ArticleTags;
import it.yuzuojian.com.mapper.ArticleTagsMapper;
import it.yuzuojian.com.service.ArticleTagsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ArticleTagsServiceImpl implements ArticleTagsService {
    @Autowired
    private ArticleTagsMapper articleTagsMapper;
    @Override
    public void add(ArticleTags articleTags) {
        articleTagsMapper.add(articleTags);
    }

    @Override
    public void deleteByArticleId(Integer articleId) {
        articleTagsMapper.deleteByArticleId(articleId);
    }

    @Override
    public void deleteByTagId(Integer tagId) {
         articleTagsMapper.deleteByTagId(tagId);
    }
}
